package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 物品损耗统计
 * </p>
 *
 * @author 张子艺
 * @since 2018-09-06
 */
@TableName("loss")
public class Loss extends Model<Loss> {

	private static final long serialVersionUID = 1L;

	private Long id;
	/**
	 * 数量
	 */
	private Integer num;
	/**
	 * 日期
	 */
	private Long date;
	/**
	 * 物品名称
	 */
	@TableField("item_name")
	private String itemName;
	/**
	 * 损耗个数
	 */
	@TableField("loss_num")
	private String lossNum;
	/**
	 * 规格
	 */
	private String Specifications;

	/**
	 * 标识 是损耗还是 多出
	 */
	private Integer flag;

	public long getAreaid() {
		return areaid;
	}

	public void setAreaid(long areaid) {
		this.areaid = areaid;
	}

	@TableField("areaid")
	private long areaid;

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getSpecifications() {
		return Specifications;
	}

	public void setSpecifications(String specifications) {
		Specifications = specifications;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Long getDate() {
		return date;
	}

	public void setDate(Long date) {
		this.date = date;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getLossNum() {
		return lossNum;
	}

	public void setLossNum(String lossNum) {
		this.lossNum = lossNum;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Loss{" +
				"id=" + id +
				", num=" + num +
				", date=" + date +
				", itemName='" + itemName + '\'' +
				", lossNum='" + lossNum + '\'' +
				", Specifications='" + Specifications + '\'' +
				'}';
	}
}
